; ModuleID = 'homework.c'
source_filename = "homework.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: noinline nounwind optnone uwtable
define dso_local i32 @main() #0 {
entry:
  %retval = alloca i32, align 4
  %a = alloca i32, align 4
  %b = alloca i32, align 4
  %x = alloca i32*, align 8
  %y = alloca i32*, align 8
  %z = alloca i32**, align 8
  store i32 0, i32* %retval, align 4
  store i32 18, i32* %a, align 4
  store i32 9, i32* %b, align 4
  store i32* %a, i32** %x, align 8
  store i32* %b, i32** %y, align 8
  store i32** %x, i32*** %z, align 8
  store i32* %b, i32** %x, align 8     //内存位置发生改变
  store i32** %y, i32*** %z, align 8   //内存位置发生改变
  ret i32 0
}

attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2}
!llvm.ident = !{!3}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 7, !"uwtable", i32 1}
!2 = !{i32 7, !"frame-pointer", i32 2}
!3 = !{!"clang version 13.0.0"}
